<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>家族社交 - 家族传承</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <script defer src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>
</head>
<body class="bg-white">
  <header class="bg-red-500 text-white p-4 flex items-center justify-between">
    <h2 class="text-xl font-semibold">家族社交</h2>
    <a href="index.html" class="text-white hover:underline"><i class="fas fa-home"></i></a>
  </header>
  <main class="p-4 max-w-3xl mx-auto space-y-6">
    <!-- 动态发布 -->
    <section class="bg-yellow-100 p-4 rounded shadow">
      <h3 class="font-semibold text-gray-700 mb-2"><i class="fas fa-pen-fancy mr-2 text-red-500"></i>发布动态</h3>
      <form class="space-y-3">
        <textarea class="w-full border p-2 rounded" rows="3" placeholder="分享你的家庭趣事、照片或视频..."></textarea>
        <div class="flex justify-between items-center">
          <div class="flex space-x-3 text-gray-600">
            <label class="flex items-center cursor-pointer"><i class="fas fa-image text-xl"></i><input type="file" class="hidden"></label>
            <label class="flex items-center cursor-pointer"><i class="fas fa-video text-xl"></i><input type="file" accept="video/*" class="hidden"></label>
            <label class="flex items-center cursor-pointer"><i class="fas fa-microphone text-xl"></i><input type="file" accept="audio/*" class="hidden"></label>
          </div>
          <button class="bg-red-500 text-white px-4 py-1 rounded hover:bg-red-600 transition">发布</button>
        </div>
      </form>
    </section>
    <!-- 动态列表 -->
    <section class="space-y-4">
      <article class="bg-gray-100 p-4 rounded shadow">
        <div class="flex items-center mb-2">
          <img src="https://source.unsplash.com/40x40/?face" class="w-10 h-10 rounded-full" alt="用户头像">
          <div class="ml-3">
            <p class="font-semibold">张三</p>
            <p class="text-xs text-gray-500">刚刚</p>
          </div>
        </div>
        <p class="mb-2">今天全家聚会，好温馨！</p>
        <div class="flex space-x-4 text-gray-600">
          <button class="flex items-center"><i class="far fa-thumbs-up mr-1"></i>12</button>
          <button class="flex items-center"><i class="far fa-comment mr-1"></i>3</button>
        </div>
      </article>
      <article class="bg-gray-100 p-4 rounded shadow">
        <div class="flex items-center mb-2">
          <img src="https://source.unsplash.com/40x40/?man" class="w-10 h-10 rounded-full" alt="用户头像">
          <div class="ml-3">
            <p class="font-semibold">李四</p>
            <p class="text-xs text-gray-500">1小时前</p>
          </div>
        </div>
        <p class="mb-2">上传了一段家庭视频，快来看看！</p>
        <div class="flex space-x-4 text-gray-600">
          <button class="flex items-center"><i class="far fa-thumbs-up mr-1"></i>8</button>
          <button class="flex items-center"><i class="far fa-comment mr-1"></i>5</button>
        </div>
      </article>
    </section>
    <!-- 活动管理 -->
    <section class="text-center">
      <button class="bg-green-500 text-white px-6 py-2 rounded hover:bg-green-600 transition"><i class="fas fa-calendar-alt mr-2"></i>创建家族活动</button>
    </section>
  </main>
</body>
</html>